
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;

namespace ComBrowser
{
	public partial class SearchCellViewController : UIViewController
	{
		#region Constructors

		// The IntPtr and initWithCoder constructors are required for controllers that need 
		// to be able to be created from a xib rather than from managed code

		public SearchCellViewController (IntPtr handle) : base(handle)
		{
			Initialize ();
		}

		[Export("initWithCoder:")]
		public SearchCellViewController (NSCoder coder) : base(coder)
		{
			Initialize ();
		}

		public SearchCellViewController () : base("SearchCellViewController", null)
		{
			Initialize ();
		}

		void Initialize ()
		{
		}
		
		#endregion
		
		public UITableViewCell Cell {
			get { return cell; }
		}
		
		public void SetCommentaryToDisplay (Commentary commentary, string query)
		{
			lblTitle.Text = commentary.DisplayTitle;
			lblDetail.Text = commentary.QueryBody (query);
		}
	}
}
